package tcts0421;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
//华为面试题新员工考试0420
public class hw面试题0422 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(br.readLine());
        int grades[] = new int[25];
        for(int i=0;i<10;i++){
            grades[i] = 2;
        }
        for(int i=10;i<20;i++){
            grades[i] = 4;
        }
        for(int i=20;i<25;i++){
            grades[i] = 8;
        }
        System.out.println(dfs(0,N,3,grades));
    }
    static HashMap<String,Integer> map = new HashMap<>();
    private static int dfs(int idx,int rest,int cnt,int []grades){
        if (cnt == 0) {
            return rest == 0 ? 1 : 0;
        }
        if (rest == 0) {
            return 1;
        }
        if(idx>=grades.length)
            return 0;
        String stat = idx+"-"+rest+"-"+cnt;
        if(map.containsKey(stat))
            return map.get(stat);
        int ans = dfs(idx+1,rest,cnt-1,grades)+dfs(idx+1,rest-grades[idx],cnt,grades);
        map.put(stat,ans);
        return ans;
    }
}
